package com.ruoyi.wms.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wms.mapper.WmsCloseAccountsMapper;
import com.ruoyi.wms.domain.WmsCloseAccounts;
import com.ruoyi.wms.service.IWmsCloseAccountsService;

/**
 * 结账管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-01
 */
@Service
public class WmsCloseAccountsServiceImpl implements IWmsCloseAccountsService 
{
    @Autowired
    private WmsCloseAccountsMapper wmsCloseAccountsMapper;

    /**
     * 查询结账管理
     * 
     * @param closeAccountsUuid 结账管理主键
     * @return 结账管理
     */
    @Override
    public WmsCloseAccounts selectWmsCloseAccountsByCloseAccountsUuid(String closeAccountsUuid)
    {
        return wmsCloseAccountsMapper.selectWmsCloseAccountsByCloseAccountsUuid(closeAccountsUuid);
    }

    /**
     * 查询结账管理列表
     * 
     * @param wmsCloseAccounts 结账管理
     * @return 结账管理
     */
    @Override
    public List<WmsCloseAccounts> selectWmsCloseAccountsList(WmsCloseAccounts wmsCloseAccounts)
    {
        return wmsCloseAccountsMapper.selectWmsCloseAccountsList(wmsCloseAccounts);
    }

    /**
     * 新增结账管理
     * 
     * @param wmsCloseAccounts 结账管理
     * @return 结果
     */
    @Override
    public int insertWmsCloseAccounts(WmsCloseAccounts wmsCloseAccounts)
    {
        wmsCloseAccounts.setCreateTime(DateUtils.getNowDate());
        return wmsCloseAccountsMapper.insertWmsCloseAccounts(wmsCloseAccounts);
    }

    /**
     * 修改结账管理
     * 
     * @param wmsCloseAccounts 结账管理
     * @return 结果
     */
    @Override
    public int updateWmsCloseAccounts(WmsCloseAccounts wmsCloseAccounts)
    {
        wmsCloseAccounts.setUpdateTime(DateUtils.getNowDate());
        return wmsCloseAccountsMapper.updateWmsCloseAccounts(wmsCloseAccounts);
    }

    /**
     * 批量删除结账管理
     * 
     * @param closeAccountsUuids 需要删除的结账管理主键
     * @return 结果
     */
    @Override
    public int deleteWmsCloseAccountsByCloseAccountsUuids(String[] closeAccountsUuids)
    {
        return wmsCloseAccountsMapper.deleteWmsCloseAccountsByCloseAccountsUuids(closeAccountsUuids);
    }

    /**
     * 删除结账管理信息
     * 
     * @param closeAccountsUuid 结账管理主键
     * @return 结果
     */
    @Override
    public int deleteWmsCloseAccountsByCloseAccountsUuid(String closeAccountsUuid)
    {
        return wmsCloseAccountsMapper.deleteWmsCloseAccountsByCloseAccountsUuid(closeAccountsUuid);
    }
}
